<?php

/**
 * This file is part of the Pagizer package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @copyright   Copyright (c) 2010 Advisa (http://www.advisa.fr)
 * @author      Pagizer Core Team <team@pagizer.org>
 * @package     pagizer
 * @subpackage  backoffice
 */

class m_backoffice_views_AjaxSwitchPublicationStatusSuccessView extends f_core_View
{
	public function execute()
	{
		$tpl = $this->getTemplateEngine()->disableCache();
		
		$tpl->setModuleTemplate("backoffice", "block/modal/ModalSwitchPublicationStatus.html");
		
		$tpl->assign("errors", $this->getModel("errors"));
		
		$folder = $this->getModel("folder");
		$link = is_object($folder) ? $folder->getEditUrl($folder->getLang()) : "currentPage";

		$tpl->assign("folder", $folder);
		$tpl->assign("link", $link);
		$tpl->assign("lang", $this->getModel("lang"));
		$tpl->assign("rows", $this->getModel("rows"));
		$tpl->assign("uniqueRow", $this->getModel("uniqueRow"));
		$tpl->assign("nbRows", $this->getModel("nbRows"));
		
		$tpl->renderDisplay();
	}
}